<div class="menu">
	<div align="right" style="font-weight:bold; font-size:12px; padding-bottom:8px; color:#10498A;">
		<?php echo $this->Access->getMyRole($this->Access->getMy('group_id')).": ".$this->Access->getMy('nombre_completo');?>
	</div>
	<?php  $this->Form->cuenta($this->Access->getMy('id'));?>	
	<div class="desplegable">
		<?php  $this->Form->menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
	</div>
</div>
<div class="asistencias form">
<?php echo $this->Form->create('Asistencia');?>
	<fieldset>
		<legend>Asistencias del <?php echo $grupo['nombre']?></legend>
		<h4><?php echo $cartilla['nombre'];?> - Sede IEM: <?php echo $sede['nombre'];?></h4>
		<table class="tabla_formulario">
		<tr>
			<td colspan="2" style="border:0;"><?php echo $this->Form->input('sesione_id', array('options'=>$sesiones, 'label'=>'Sesion'));?></td>
			<td colspan="2" style="border:0;"><?php echo $this->Form->input('fecha_inicio',array( 'label' => 'Fecha de Inicio', 
	    													'minYear' => date('Y'), 'maxYear' => date('Y')));?></td>
			<td colspan="2" style="border:0;"><?php echo $this->Form->input('fecha_finalizacion',array( 'label' => 'Fecha de Finalizacion', 
	    													'minYear' => date('Y'), 'maxYear' => date('Y')));?></td>
		</tr>
		<tr>
			<td colspan="3" style="border:0;"><h4>Participantes</h4></td>
		</tr>
	<?php $i=0;
		  foreach($estudiantes as $estudiante):?>
		<?php if($i%3==0){
			?> <tr>
			<?php }?>
				<td style="border:0;">
					<span class="participante"><?php echo $this->Html->image('visto_bueno.png', array('alt'=> __('ok', true), 'border' => '0'));
						 echo $estudiante['nombre_completo'];
						 echo $this->Form->input("",array('type'=>'hidden','id'=>'data[estudiantes]['.$estudiante['id'].']',
					 						'name'=>'data[estudiantes]['.$estudiante['id'].']','value'=>$estudiante['id']));?>
					 </span>
				</td>
				<td style=" border:0;">
					<span class="participante_horas"><?php 
						echo $this->Form->input('horas', array('class'=>'horas', 'id'=>'data[horas]['.$estudiante['id'].']',
										'name'=>'data[horas]['.$estudiante['id'].']', 'value'=>0));?>
					</span>
				</td>												
			<?php 
				$i++;
				if($i%3==0){
				?>	</tr>
			<?php }?>
	<?php endforeach;?>
	<?php 
		echo $this->Form->input('user_id', array('value'=>$this->Access->getMy('id'), 'type'=>'hidden'));
		echo $this->Form->input('sedesiem_id', array('value'=>$sede['id'], 'type'=>'hidden'));
		echo $this->Form->input('cartilla_id', array('value'=>$cartilla['id'], 'type'=>'hidden'));
		echo $this->Form->input('grupo_id', array('value'=>$grupo['id'], 'type'=>'hidden'));
	?>
		</table>
	</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>
</div>